package com.zyj.quartz.task;

import com.zyj.common.constant.Constants;
import com.zyj.common.utils.http.HttpUtils;
import org.springframework.stereotype.Component;
import com.zyj.common.utils.StringUtils;

/**
 * 定时任务调度测试
 * 

 */
@Component("ryTask")
public class RyTask
{

    public void getToken()
    {
        Constants.ticket = "";
        Constants.tenant_access_token = "";
        System.out.println("getToken");
        HttpUtils.sendGet("http://localhost/feishu/getTicketAndSignature");
    }

    public void getDepartment()
    {
        System.out.println("getDepartment");
        HttpUtils.sendGet("http://localhost/feishu/getFeishuDepartment");
    }

    //计算资产维修报表数据
    public void getReportPrpairs()
    {
        System.out.println("getReportPrpairs");
        HttpUtils.sendGet("http://localhost/assets/repairsreport/getReportPrpairs");
    }

    //资产借用逾期报警
    public void getBorrowExp()
    {
        System.out.println("getBorrowExp");
        HttpUtils.sendGet("http://localhost/assets/repairsreport/getBorrowExp");
    }
}
